package dwz.persistence.beans;

import java.util.Date;

import dwz.cms.article.common.ArticleStatus;

/** 
* Created by Eclipse
* @author : Yating
* @version:2017年4月18日 下午5:13:41 
* 类说明 
*/
public class Article {
	// Fields

		private Integer id;
		private String code;
		private Short state;
		private String source;
		private String title;
		private String content;
		private String webpath;
		private String rootpath;
		private String keyword;
		private String brief;
		private Integer authorid;
		private String contributor;
		private Date orgtime;
		private Date createtime;
		private Date publishtime;
		private Integer publisherid;
		private String publiship;
		private Date expiretime;
		private Integer lastmoduserid;
		private Date lastmodifytime;
		private Integer lastaudituserid;
		private Date lastaudittime;
		private String lastauditip;
		private String lastauditlog;
		private String serverlist;
		private String relatelist;
		private String note;
		private String counterid;
		private Byte pubmode;
	    private Date attime;
		
		private String channelids;
		private Short channelTop;
		private Integer seq;
		
		// Constructors

		/** default constructor */
		public Article() {
		}

		/** minimal constructor */
		public Article(String code) {
			this.code = code;
		}

		/** full constructor */
		public Article(String code, Short state, String source, String title,
				String content, String webpath, String rootpath, String keyword,
				String brief, Integer authorid, String contributor, Date orgtime,
				Date createtime, Date publishtime, Integer publisherid,
				String publiship, Date expiretime, Integer lastmoduserid,
				Date lastmodifytime, Integer lastaudituserid, Date lastaudittime,
				String lastauditip, String lastauditlog, String serverlist,
				String relatelist, String note,Byte pubmode,Date attime,String channelids,Short channelTop) {
			this.code = code;
			this.state = state;
			this.source = source;
			this.title = title;
			this.content = content;
			this.webpath = webpath;
			this.rootpath = rootpath;
			this.keyword = keyword;
			this.brief = brief;
			this.authorid = authorid;
			this.contributor = contributor;
			this.orgtime = orgtime;
			this.createtime = createtime;
			this.publishtime = publishtime;
			this.publisherid = publisherid;
			this.publiship = publiship;
			this.expiretime = expiretime;
			this.lastmoduserid = lastmoduserid;
			this.lastmodifytime = lastmodifytime;
			this.lastaudituserid = lastaudituserid;
			this.lastaudittime = lastaudittime;
			this.lastauditip = lastauditip;
			this.lastauditlog = lastauditlog;
			this.serverlist = serverlist;
			this.relatelist = relatelist;
			this.note = note;
			this.attime=attime;
			this.pubmode=pubmode;
			
			this.channelids=channelids;
			this.channelTop=channelTop;
		}

		// Property accessors

		public Integer getId() {
			return this.id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getCode() {
			return this.code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public Short getState() {
			return this.state;
		}

		public void setState(Short state) {
			this.state = state;
		}

		public String getSource() {
			return this.source;
		}

		public void setSource(String source) {
			this.source = source;
		}

		public String getTitle() {
			return this.title;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getContent() {
			return this.content;
		}

		public void setContent(String content) {
			this.content = content;
		}

		public String getWebpath() {
			return this.webpath;
		}

		public void setWebpath(String webpath) {
			this.webpath = webpath;
		}

		public String getRootpath() {
			return this.rootpath;
		}

		public void setRootpath(String rootpath) {
			this.rootpath = rootpath;
		}

		public String getKeyword() {
			return this.keyword;
		}

		public void setKeyword(String keyword) {
			this.keyword = keyword;
		}

		public String getBrief() {
			return this.brief;
		}

		public void setBrief(String brief) {
			this.brief = brief;
		}

		public Integer getAuthorid() {
			return this.authorid;
		}

		public void setAuthorid(Integer authorid) {
			this.authorid = authorid;
		}

		public String getContributor() {
			return this.contributor;
		}

		public void setContributor(String contributor) {
			this.contributor = contributor;
		}

		public Date getOrgtime() {
			return this.orgtime;
		}

		public void setOrgtime(Date orgtime) {
			this.orgtime = orgtime;
		}

		public Date getCreatetime() {
			return this.createtime;
		}

		public void setCreatetime(Date createtime) {
			this.createtime = createtime;
		}

		public Date getPublishtime() {
			return this.publishtime;
		}

		public void setPublishtime(Date publishtime) {
			this.publishtime = publishtime;
		}

		public Integer getPublisherid() {
			return this.publisherid;
		}

		public void setPublisherid(Integer publisherid) {
			this.publisherid = publisherid;
		}

		public String getPubliship() {
			return this.publiship;
		}

		public void setPubliship(String publiship) {
			this.publiship = publiship;
		}

		public Date getExpiretime() {
			return this.expiretime;
		}

		public void setExpiretime(Date expiretime) {
			this.expiretime = expiretime;
		}

		public Integer getLastmoduserid() {
			return this.lastmoduserid;
		}

		public void setLastmoduserid(Integer lastmoduserid) {
			this.lastmoduserid = lastmoduserid;
		}

		public Date getLastmodifytime() {
			return this.lastmodifytime;
		}

		public void setLastmodifytime(Date lastmodifytime) {
			this.lastmodifytime = lastmodifytime;
		}

		public Integer getLastaudituserid() {
			return this.lastaudituserid;
		}

		public void setLastaudituserid(Integer lastaudituserid) {
			this.lastaudituserid = lastaudituserid;
		}

		public Date getLastaudittime() {
			return this.lastaudittime;
		}

		public void setLastaudittime(Date lastaudittime) {
			this.lastaudittime = lastaudittime;
		}

		public String getLastauditip() {
			return this.lastauditip;
		}

		public void setLastauditip(String lastauditip) {
			this.lastauditip = lastauditip;
		}

		public String getLastauditlog() {
			return this.lastauditlog;
		}

		public void setLastauditlog(String lastauditlog) {
			this.lastauditlog = lastauditlog;
		}

		public String getServerlist() {
			return this.serverlist;
		}

		public void setServerlist(String serverlist) {
			this.serverlist = serverlist;
		}

		public String getRelatelist() {
			return this.relatelist;
		}

		public void setRelatelist(String relatelist) {
			this.relatelist = relatelist;
		}

		public String getNote() {
			return this.note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		@Override
		public String toString() {
			return getId() + "," + getCode() + "," + getState() + ","
					+ getContent() + "," + getAuthorid() + "," + getCreatetime();
		}

		public String getCounterid()
		{
			return counterid;
		}

		public void setCounterid(String counterid)
		{
			this.counterid = counterid;
		}
		
		public Byte getPubmode() {
	        return pubmode;
	    }

	    public void setPubmode(Byte pubmode) {
	        this.pubmode = pubmode;
	    }

	    public Date getAttime() {
	        return attime;
	    }

	    public void setAttime(Date attime) {
	        this.attime = attime;
	    }
		
		public String getChannelids()
		{
			return channelids;
		}

		public void setChannelids(String channelids)
		{
			this.channelids = channelids;
		}
		
		public Short getChannelTop() {
			return this.channelTop;
		}

		public void setChannelTop(Short channelTop) {
			this.channelTop = channelTop;
		}
		
		public Integer getSeq() {
			return this.seq;
		}

		public void setSeq(Integer seq) {
			this.seq = seq;
		}

		
}
 